<div class="modal-header">
    <h3 class="modal-title">管理奖品
    </h3>
</div>
<div class="modal-body">
    <table class="table table-striped table-bordered table-hover">
        <thead>
        <tr>
            <th><input type="checkbox" ng-model="selectedAll" ng-click="selectAll()"></th>
            <th>奖品类型</th>
            <th>奖品说明</th>
            <th>奖品数量</th>
            <th>奖品剩余数量</th>
        </tr>
        </thead>
        <tbody>
        <tr ng-repeat="prize in prizes">
            <td><input type="checkbox" ng-model="prize.selected" ng-click="selectOne()"></td>
            <td><span ng-bind="prize.title"></span></td>
            <td><span ng-bind="prize.description"></span></td>
            <td><span ng-bind="prize.total"></span></td>
            <td><span ng-bind="prize.total-prize.exchanged"></span></td>
        </tr>
        </tbody>
    </table>
</div>
<div class="modal-footer">
    <button class="btn btn-primary" type="button" ng-click="ok()">OK</button>
    <button class="btn btn-warning" type="button" ng-click="cancel()">Cancel</button>
</div>